﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using QLKhachSan.DTO;
using System.Data;
using System.Data.SqlClient;
using QLKhachSan.DAO;

namespace QLKhachSan.BUS
{
    public class BUS_Phong
    {
        public static void themPhong(DTO_Phong p)
        {
            DAO_Phong.themPhong(p);
        }
        public static DataTable hienthiDanhSachPhong()
        {
            return DAO_Phong.hienthiDanhSachPhong();
        }
        public static void suaPhong(DTO_Phong p)
        {
            DAO_Phong.suaPhong(p);
        }
        public static void xoaPhong(DTO_Phong p)
        {
            DAO_Phong.xoaPhong(p);
        }
        public static DataTable hienthiDanhSachPhongTheoTenPhong()
        {
            return DAO_Phong.hienthiDanhSachPhongTheoTenPhong();
        }
        public static DataTable hienthiDanhSachPhongTheoTrangThai(DTO_Phong p)
        {
            return DAO_Phong.hienthiDanhSachPhongTheoTrangThai(p);
        }
        public static void suaPhongTheoTrangThai(DTO_Phong p)
        {
            DAO_Phong.suaPhongTheoTrangThai(p);
        }
    }
}
